<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<div class="t_bar">${param.title }</div>
	<table  id="tblAttendOrg" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
		<thead >
					<tr style="border:1px solid #B7D1E6">
						<th class="TblHead" align="center" rowspan="2"  width="5%">选择</th>
						<th class="TblHead" align="center" rowspan="2"   width="5%">序号</th>
						<th class="TblHead" align="center" rowspan="2"   width="15%">单位名称</th> 
						<th class="TblHead" align="center" rowspan="2"   width="15%">单位地址</th>  
				        <th class="TblHead" align="center" rowspan="2"   width="10%">项目联系人</th> 
				        <th class="TblHead" align="center" rowspan="2"   width="10%">电话</th>     
						<th class="TblHead" align="center" rowspan="2"   width="10%">注册类型</th> 
						<th class="TblHead" align="center" rowspan="2"   width="10%">组织机构代码</th>     
						<th class="TblHead" align="center" rowspan="2"   width="10%">Email地址</th>     
						<th class="TblHead" align="center"  width="10%">手机</th>                
					</tr>
			</thead>
			<tbody id="tab">
					<tr style="display:none"  align="center">
						<td align="center">&nbsp;
							<input type="radio" class="radiobutton" name="selAttendOrg" >
							<input type="hidden" name="attendorgs|attendorg[0]|nature_code" /> 
						</td>
						<td align="center">
							<span name="attendorgs|attendorg[0]@seq_no" >[index]</span> 
						</td>
						<td align="center">
						<span name="attendorgs|attendorg[0]|cname"  label="单位名称" ></span>
						</td>
						<td align="center">
						<span name="attendorgs|attendorg[0]|address"  label="单位地址" ></span>
						</td>
						<td align="center"><span name="attendorgs|attendorg[0]|contact_psn_name"  label="项目联系人"  ></span>
						</td>
						<td align="center"><span name="attendorgs/attendorg[0]|contact_psn_tel"  label="电话" ></span>
						</td>
						<td align="center"><span name="attendorgs|attendorg[0]|nature_name"  label="注册类型" ></span>
						</td>
						<td align="center"><span name="attendorgs|attendorg[0]|org_no"  label="组织机构代码" ></span>
						</td>
						<td align="center"><span name="attendorgs|attendorg[0]|email"  label="Email地址" ></span>
						</td>
						<td align="center"><span name="attendorgs|attendorg[0]|mobile"  label="手机"  ></span>
						</td>
				</tr>
				<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/attendorgs/attendorg" var="attendorg">
					
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
					<tr  align="center">
						<td>&nbsp;
							<input type="radio" class="radiobutton" name="selAttendOrg" >
							<input type="hidden" name="attendorgs/attendorg[${flag}${index}]/nature_code" value="<x:out select="$attendorg/nature_code"/>"/> 
						</td>
						<td align="center">
							<span   name="attendorgs/attendorg[${flag}${index}]@seq_no" ><x:out select="$attendorg/@seq_no"/></span> 
						</td>
						<td >
						<span name="attendorgs/attendorg[${flag}${index}]/cname"  label="单位名称" ><x:out select="$attendorg/cname"/></span>
						</td>
						<td >
						<span name="attendorgs/attendorg[${flag}${index}]/address"  label="单位地址" ><x:out select="$attendorg/address"/></span>
						</td>
						<td ><span name="attendorgs/attendorg[${flag}${index}]/contact_psn_name"  label="项目联系人"><x:out select="$attendorg/contact_psn_name"/></span>
						</td>
						<td ><span name="attendorgs/attendorg[${flag}${index}]/contact_psn_tel"  label="电话" ><x:out select="$attendorg/contact_psn_tel"/></span>
						</td>
						<td ><span name="attendorgs/attendorg[${flag}${index}]/nature_name"  label="注册类型" ><x:out select="$attendorg/nature_name"/></span>
						</td>
						<td ><span name="attendorgs/attendorg[${flag}${index}]/org_no"  label="组织机构代码" ><x:out select="$attendorg/org_no"/></span>
						</td>
						<td ><span name="attendorgs/attendorg[${flag}${index}]/email"  label="Email地址" ><x:out select="$attendorg/email"/></span>
						</td>
						<td ><span name="attendorgs/attendorg[${flag}${index}]/mobile"  label="手机" ><x:out select="$attendorg/mobile"/></span>
						</td>
						</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
				</tbody>
			</table>
			<br/>
					<table width="98%" align="center"  border="0" cellpadding="0" cellspacing="1">
					<tr >
					<input class="button_02" type="button" name="cmdAddbefore" value="添加" onclick="if(checkTabLimit('tblAttendOrg',99,'参与（合作）单位信息最多只能填写99条')){addNewRow('tblAttendOrg','${ctx}/proposal/edit/dialog/orgInfoEdit_fmzlzdxm?parentTab=tblAttendOrg&type=add&needMeetingInfo=${param.needMeetingInfo}&TB_iframe=true&height=440&width=900','参与（合作）单位信息');}try{top.resizeFrame();}catch(e){};">
				&nbsp;<input class="button_02"   name="cmdMovePrev" type="button" value="上移" onclick="movePrev('tblAttendOrg');">
				&nbsp;<input class="button_02"   name="cmdMoveNext"  type="button" value="下移" onclick="moveNext('tblAttendOrg');">
				&nbsp;<input class="button_02"  id="cmdEdit" type="button" value="编辑" onclick="editRow('tblAttendOrg','${ctx}/proposal/edit/dialog/orgInfoEdit_fmzlzdxm?parentTab=tblAttendOrg&type=edit&needMeetingInfo=${param.needMeetingInfo}&TB_iframe=true&height=440&width=900','参与（合作）单位信息')">
				&nbsp;<input class="button_02"  name="cmddel" type="button" value="删除" onclick="deleteSelectedRow('tblAttendOrg','参与（合作）单位信息');"></td>
	</tr>
	</table>
	<%--<table> <tr  class="t_tr">
	<td colspan="5"><span id="attendorg_00" class="color_red" style="display:none">*</span>参与单位1</td>
	</tr>
	<tr >
		<td align="right" >单位1名称：</td>
		<td colspan="4">
		<input type="hidden" name="attendorgs/attendorg[00]@seq_no" value="0" />
		<input id="org_name1"  name="attendorgs/attendorg[00]/cname"  onchange="addClass('attendorg[00]',this);" label="${param.title}-->参与单位1-->单位1名称" type="text"  class="input_css  maxlength:100"  style="width: 697px;" maxlength="100" value="<x:out select="$xmlData/data/attendorgs/attendorg[@seq_no='0']/cname" />"/> 
		    
		</td>
	</tr>
	<tr >
		<td align="right" >单位地址：</td>
		<td colspan="4"><input  name="attendorgs/attendorg[00]/org_address"  onchange="addClass('attendorg[00]',this);"  label="${param.title}-->参与单位1-->单位地址" type="text"  class="input_css  maxlength:100"  style="width: 697px;" maxlength="100" value="<x:out select="$xmlData/data/attendorgs/attendorg[@seq_no='0']/org_address" />"/> 
		    </span>
		</td>
	</tr>
	<tr >
		<td  align="right">注册类型：</td>
		<td  align="left" colspan="2">
		<c:set var="nature">{'id':'<x:out select="$xmlData/data/attendorgs/attendorg[@seq_no='0']/nature_code" />','name':'<x:out select="$xmlData/data/attendorgs/attendorg[@seq_no='0']/nature_name" />'}</c:set>
		<cpt:tree key="nature_type" cacheable="false" className="hn_iuput_kuang gray" readonly="true" value="${nature}" label="注册类型"
			id="nature"  showPattern="current" shieldPattern="0" topCheckbox="false" onClick="initTreeValue" /> 
		<input type="hidden" id="nature_code" name="attendorgs/attendorg[00]/nature_code" class="" label="${param.title}-->参与单位1-->注册类型" value="<x:out select="$xmlData/data/attendorgs/attendorg[@seq_no='0']/nature_code" />" /> 
		<input type="hidden" id="nature_name" name="attendorgs/attendorg[00]/nature_name" value="<x:out select="$xmlData/data/attendorgs/attendorg[@seq_no='0']/nature_name" />" /></td>
		<td align="right">组织机构代码：</td>
		<td><input name="attendorgs/attendorg[00]/org_no" onchange="addClass('attendorg[00]',this);"  label="${param.title}-->参与单位1-->组织机构代码" type="text" class="input_css orgCard " maxlength="20" value="<x:out select="$xmlData/data/attendorgs/attendorg[@seq_no='0']/org_no" />" /></td>
	</tr>
	<tr  >
		<td align="right">联系人：</td>
		<td  colspan="2">
			<input name="attendorgs/attendorg[00]/lxr_name"  onchange="addClass('attendorg[00]',this);" label="${param.title}-->参与单位1-->联系人" type="text" class="input_css " maxlength="30" value="<x:out select="$xmlData/data/attendorgs/attendorg[@seq_no='0']/lxr_name" />" /></td>
		<td align="right">电话：</td>
		<td><input name="attendorgs/attendorg[00]/lxr_tel"  onchange="addClass('attendorg[00]',this);" label="${param.title}-->参与单位1-->电话" type="text" class="input_css " maxlength="30" value="<x:out select="$xmlData/data/attendorgs/attendorg[@seq_no='0']/lxr_tel" />" /></td>
	</tr>
	<tr  >
		<td align="right">Email地址：</td>
		<td  colspan="2">
			<input name="attendorgs/attendorg[00]/lxr_email"  onchange="addClass('attendorg[00]',this);" label="${param.title}-->参与单位1-->Email地址" type="text" class="input_css email" maxlength="50" value="<x:out select="$xmlData/data/attendorgs/attendorg[@seq_no='0']/lxr_email" />" /></td>
		<td align="right">手机：</td>
		<td><input name="attendorgs/attendorg[00]/lxr_mobile"  onchange="addClass('attendorg[00]',this);" label="${param.title}-->参与单位1-->手机" type="text" class="input_css mobile" maxlength="11" value="<x:out select="$xmlData/data/attendorgs/attendorg[@seq_no='0']/lxr_mobile" />" /></td>
	</tr>
	<tr >
		<td  align="right" >工作分工（限200字）：</td>
        <td colspan="4">
			<textarea rows="4" style="width:98%;"  onchange="addClass('attendorg[00]',this);"  class="input_textarea   maxlength:200"   name='attendorgs/attendorg[00]/work_divide'  label="${param.title }-->参与单位2-->工作分工"><x:out select="$xmlData/data/attendorgs/attendorg[@seq_no='0']/work_divide"/></textarea>
		   <input type='hidden' name='attendorgs/attendorg[00]/work_divide_hidden' id='attendorgs/attendorg[00]/work_divide_hidden' value=''>
		  </td>
	</tr>
	<tr >
		<td  align="right" >经费预算分配情况：</td>
		<td  align="right" >总经费（万元）：</td>
        <td colspan="1">
			<input  name="attendorgs/attendorg[00]/fund_all"  onchange="addClass('attendorg[00]',this);"  label="${param.title}-->参与单位1-->经费预算分配情况中的总经费" type="text"  class="input_css " style="text-align: right;" onfocus="InitInput.setNumber(this,7,4,2)" value="<x:out select="$xmlData/data/attendorgs/attendorg[@seq_no='0']/fund_all" />"/>
		</td>
		<td  align="right" >省科技厅经费（万元）：</td>
        <td colspan="1">
			<input  name="attendorgs/attendorg[00]/province_fund"  onchange="addClass('attendorg[00]',this);" label="${param.title}-->参与单位1-->经费预算分配情况中的省科技厅经费" type="text"  class="input_css " style="text-align: right;" onfocus="InitInput.setNumber(this,7,4,2)" value="<x:out select="$xmlData/data/attendorgs/attendorg[@seq_no='0']/province_fund" />"/>
		</td>
	</tr>
		<tr  class="t_tr">
	<td colspan="5"><span id="attendorg_01" class="color_red" style="display:none">*</span>参与单位2</td>
	</tr>
	<tr >
		<td align="right" >单位2名称：</td>
		<td colspan="4">
		<input type="hidden" name="attendorgs/attendorg[01]@seq_no" value="1" />
		<input id="org_name2"  name="attendorgs/attendorg[01]/cname" onchange="addClass('attendorg[01]',this);" label="${param.title}-->参与单位2-->单位2名称" type="text"  class="input_css  maxlength:100"  style="width: 697px;" maxlength="100" value="<x:out select="$xmlData/data/attendorgs/attendorg[@seq_no='1']/cname" />"/> 

		</td>
	</tr>
	<tr >
		<td align="right" >单位地址：</td>
		<td colspan="4"><input  name="attendorgs/attendorg[01]/org_address"  onchange="addClass('attendorg[01]',this);" label="${param.title}-->参与单位2-->单位地址" type="text"  class="input_css  maxlength:100"  style="width: 697px;" maxlength="100" value="<x:out select="$xmlData/data/attendorgs/attendorg[@seq_no='1']/org_address" />"/> 
		    </span>
		</td>
	</tr>
	<tr >
		<td  align="right">注册类型：</td>
		<td  align="left" colspan="2">
		<c:set var="nature2">{'id':'<x:out select="$xmlData/data/attendorgs/attendorg[@seq_no='1']/nature2_code" />','name':'<x:out select="$xmlData/data/attendorgs/attendorg[@seq_no='1']/nature2_name" />'}</c:set>
		<cpt:tree key="nature_type" cacheable="false" className="hn_iuput_kuang gray" readonly="true" value="${nature2}" label="注册类型"
			id="nature2"  showPattern="current" shieldPattern="0" topCheckbox="false" onClick="initTreeValue"  /> 
		<input type="hidden" id="nature2_code" name="attendorgs/attendorg[01]/nature2_code" class="" label="${param.title}-->参与单位2-->注册类型" value="<x:out select="$xmlData/data/attendorgs/attendorg[@seq_no='1']/nature2_code" />" /> 
		<input type="hidden" id="nature2_name" name="attendorgs/attendorg[01]/nature2_name" value="<x:out select="$xmlData/data/attendorgs/attendorg[@seq_no='1']/nature2_name" />" /></td>
		<td align="right">组织机构代码：</td>
		<td><input name="attendorgs/attendorg[01]/org_no"  onchange="addClass('attendorg[01]',this);" label="${param.title}-->参与单位2-->组织机构代码" type="text" class="input_css orgCard " maxlength="20" value="<x:out select="$xmlData/data/attendorgs/attendorg[@seq_no='1']/org_no" />" /></td>
	</tr>
	<tr  >
		<td align="right">联系人：</td>
		<td  colspan="2">
			<input name="attendorgs/attendorg[01]/lxr_name"  onchange="addClass('attendorg[01]',this);" label="${param.title}-->参与单位2-->联系人" type="text" class="input_css " maxlength="30" value="<x:out select="$xmlData/data/attendorgs/attendorg[@seq_no='1']/lxr_name" />" /></td>
		<td align="right">电话：</td>
		<td><input name="attendorgs/attendorg[01]/lxr_tel"  onchange="addClass('attendorg[01]',this);" label="${param.title}-->参与单位2-->电话" type="text" class="input_css " maxlength="30" value="<x:out select="$xmlData/data/attendorgs/attendorg[@seq_no='1']/lxr_tel" />" /></td>
	</tr>
	<tr  >
		<td align="right">Email地址：</td>
		<td  colspan="2">
			<input name="attendorgs/attendorg[01]/lxr_email"  onchange="addClass('attendorg[01]',this);" label="${param.title}-->参与单位2-->Email地址" type="text" class="input_css email" maxlength="50" value="<x:out select="$xmlData/data/attendorgs/attendorg[@seq_no='1']/lxr_email" />" /></td>
		<td align="right">手机：</td>
		<td><input name="attendorgs/attendorg[01]/lxr_mobile"  onchange="addClass('attendorg[01]',this);" label="${param.title}-->参与单位2-->手机" type="text" class="input_css mobile" maxlength="11" value="<x:out select="$xmlData/data/attendorgs/attendorg[@seq_no='1']/lxr_mobile" />" /></td>
	</tr>
	<tr >
		<td  align="right" >工作分工（限200字）：</td>
        <td colspan="4">
			<textarea rows="4" style="width:98%;"   onchange="addClass('attendorg[01]',this);" class="input_textarea   maxlength:200"   name='attendorgs/attendorg[01]/work_divide'  label="${param.title }-->参与单位2-->工作分工"><x:out select="$xmlData/data/attendorgs/attendorg[@seq_no='1']/work_divide"/></textarea>
		   <input type='hidden' name='attendorgs/attendorg[01]/work_divide_hidden' id='attendorgs/attendorg[01]/work_divide_hidden' value=''>
		  </td>
	</tr>
	<tr >
		<td  align="right" >经费预算分配情况：</td>
		<td  align="right" >总经费（万元）：</td>
        <td colspan="1">
			<input  name="attendorgs/attendorg[01]/fund_all"  onchange="addClass('attendorg[01]',this);" label="${param.title}-->参与单位2-->经费预算分配情况中的总经费" type="text"  class="input_css " style="text-align: right;" onfocus="InitInput.setNumber(this,7,4,2)" value="<x:out select="$xmlData/data/attendorgs/attendorg[@seq_no='1']/fund_all" />"/>
		</td>
		<td  align="right" >省科技厅经费（万元）：</td>
        <td colspan="1">
			<input  name="attendorgs/attendorg[01]/province_fund"  onchange="addClass('attendorg[01]',this);" label="${param.title}-->参与单位2-->经费预算分配情况中的省科技厅经费" type="text"  class="input_css " style="text-align: right;" onfocus="InitInput.setNumber(this,7,4,2)" value="<x:out select="$xmlData/data/attendorgs/attendorg[@seq_no='1']/province_fund" />"/>
		</td>
	</tr>
	<tr  class="t_tr">
	<td colspan="5"><span id="org_cooperate3" class="color_red" style="display:none">*</span>其他单位</td>
	</tr>
     <tr><td colspan="5">
	     <table id="coopOrgInfo_sub" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
	     <tr  style="display:none;">
			<td align="right" >其他单位名称<span name="otherattendorgs|attendorg[0]@seq_no" >[index]</span>  ：</td>
			<td colspan="4">
			<input id="org_name3" name="otherattendorgs|attendorg[0]|cname"  onchange="addClass('org_cooperate3',this);"  label="${param.title}-->其他单位-->其他单位名称[index]" type="text"  class="input_css  maxlength:100"  style="width: 697px;" maxlength="100" value=""/> 
			</td>
		</tr>
		<tr >
			<td align="right" >其他单位名称<span name="otherattendorgs/attendorg[0]@seq_no" >1</span>：</td>
			<td colspan="4">
			<input id="org_name3" name="otherattendorgs/attendorg[00]/cname"  onchange="addClass('org_cooperate3',this);"  label="${param.title}-->其他单位-->其他单位名称1" type="text"  class="input_css  maxlength:100"  style="width: 697px;" maxlength="100" value="<x:out select="$xmlData/data/otherattendorgs/attendorg[@seq_no='1']/cname" />"/> 
			</td>
		</tr>
		<c:set value="1" var="index" scope="page"/>
		<x:forEach select="$xmlData/data/otherattendorgs/attendorg" var="attendorg">
				<c:choose>
					<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
					<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
				</c:choose>
				<tr  align="center">
						<td align="center">
						        <c:set var="seq_no"><x:out select="$attendorg/@seq_no"/></c:set>
								其他单位名称<span   name="otherattendorgs/attendorg[${flag}${index}]@seq_no" ><x:out select="$attendorg/@seq_no"/></span> 
						</td>
				 <td >
						<input name="otherattendorgs/attendorg[${flag}${index}]/cname" class=" input_text" label="${param.title}-->其他单位-->其他单位名称${seq_no}" value="<x:out select="$attendorg/cname"/>" maxlength="50" style="width:80%">
				</td>
				</tr>
				<c:set value="${index+1}" var="index" scope="page"/>
		</x:forEach>
		</table>
		<table  width="98%" align="center">
		<tr >
		<td colspan="5">
			<input class="button" name="cmdAddbefore" type=button value="添加" onclick="if(checkTabLimit('coopOrgInfo_sub',10,'项目进度信息最多只能填写10条')){addNewRow('coopOrgInfo_sub');}try{top.resizeFrame();}catch(e){};">
		</td>
		</tr>
		</table>
     </td></tr>
	
	<tr >
		<td  align="right" >工作分工（限200字）：</td>
        <td colspan="4">
			<textarea rows="4" style="width:98%;"  onchange="addClass('org_cooperate3',this);"  class="input_textarea   maxlength:200"   name='proposal/org_cooperate3/work_divide'  label="${param.title }-->其他单位-->工作分工"><x:out select="$xmlData/data/proposal/org_cooperate3/work_divide"/></textarea>
		   <input type='hidden' name='proposal/org_cooperate3/work_divide_hidden' id='proposal/org_cooperate3/work_divide_hidden' value=''>
		  </td>
	</tr>
	<tr >
		<td  align="right" >经费预算分配情况：</td>
		<td  align="right" >总经费（万元）：</td>
        <td colspan="1">
			<input  name="proposal/org_cooperate3/fund_all" onchange="addClass('org_cooperate3',this);"  label="${param.title}-->其他单位-->经费预算分配情况中的总经费" type="text"  class="input_css " style="text-align: right;" onfocus="InitInput.setNumber(this,7,4,2)" value="<x:out select="$xmlData/data/proposal/org_cooperate3/fund_all" />"/>
		</td>
		<td  align="right" >省科技厅经费（万元）：</td>
        <td colspan="1">
			<input  name="proposal/org_cooperate3/province_fund"  onchange="addClass('org_cooperate3',this);" label="${param.title}-->其他单位-->经费预算分配情况中的省科技厅经费" type="text"  class="input_css " style="text-align: right;" onfocus="InitInput.setNumber(this,7,4,2)" value="<x:out select="$xmlData/data/proposal/org_cooperate3/province_fund" />"/>
		</td>
	</tr>
</table> --%>
<br/>
<script type="text/javascript">
   function addClass(str,obj){
	   if($(obj).val().trim()!=''){
		   if(str=='attendorg[01]'){
			   $("#attendorg_01").css("display","");
		   }else if(str=='attendorg[00]'){
			   $("#attendorg_00").css("display","");
		   }else{
			   $("#"+str).css("display","");
		   }
		  $("#coopOrgInfo").find("input[name*='"+str+"'],textarea[name*='"+str+"']").addClass("required");
		  $("#coopOrgInfo").find("input[name*='"+str+"'][name$='nature_name']").removeClass("required");
		  $("#coopOrgInfo").find("input[name*='"+str+"'][name$='nature2_name']").removeClass("required");
		  $("#coopOrgInfo").find("input[name*='"+str+"'][name$='work_divide_hidden']").removeClass("required");
	   }else{
		   var flag=false;
		   $("#coopOrgInfo").find("input[name*='"+str+"'],textarea[name*='"+str+"']").each(function(){
			   if($(this).attr("name").indexOf("@seq_no")==-1){
				   if($(this).val().trim()!=''){
					   flag=true;
				   } 
			   }
		   });
		   if(flag){
			   if(str=='attendorg[01]'){
				   $("#attendorg_01").css("display","");
			   }else if(str=='attendorg[00]'){
				   $("#attendorg_00").css("display","");
			   }else{
				   $("#"+str).css("display","");
			   }
			   $("#coopOrgInfo").find("input[name*='"+str+"'],textarea[name*='"+str+"']").removeClass("required");
			   $("#coopOrgInfo").find("input[name*='"+str+"'],textarea[name*='"+str+"']").addClass("required");
			   $("#coopOrgInfo").find("input[name*='"+str+"'][name$='nature_name']").removeClass("required");
			   $("#coopOrgInfo").find("input[name*='"+str+"'][name$='nature2_name']").removeClass("required");
			   $("#coopOrgInfo").find("input[name*='"+str+"'][name$='work_divide_hidden']").removeClass("required");
		   }else{
			   if(str=='attendorg[01]'){
				   $("#attendorg_01").css("display","none");
			   }else if(str=='attendorg[00]'){
				   $("#attendorg_00").css("display","none");
			   }else{
				   $("#"+str).css("display","none");
			   }
			   $("#coopOrgInfo").find("input[name*='"+str+"'],textarea[name*='"+str+"']").removeClass("required");
		   }
	   }
   }

   $(document).ready(function(){
	  // addClass('org_cooperate3',$("#org_name3"));
	   //addClass('attendorg[01]',$("#org_name2"));
	  // addClass('attendorg[00]',$("#org_name1"));
	  $("#tblAttendOrg").each(function(){
	  		$(this).find("tr:even").addClass("li_1");
	  		$(this).find("tr:odd").addClass("li_2");
	  	});
	});
</script>